/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: xiaotutu
 * Date: 2024-03-21
 * Time: 12:58
 */
public class Test {
    public static void main(String[] args) {
        MySingleList mySingleList = new MySingleList();
        // mySingleList.creatList();
        /*mySingleList.addFirst(12);
        mySingleList.addFirst(23);
        mySingleList.addFirst(34);
        mySingleList.addFirst(45);
        mySingleList.addFirst(56);*/
        mySingleList.addLast(12);
        mySingleList.addLast(23);
        mySingleList.addLast(34);
        mySingleList.addLast(45);
        mySingleList.addLast(56);
        // mySingleList.remove(34);
       /* try {
            mySingleList.addIndex(2,43);
        }catch (IndexOutOfBounds e) {
            e.printStackTrace();
        }*/
        mySingleList.display();
        System.out.println(mySingleList.size());
    }
}
